<include file="Public:header"/>

<div class="table-tit"><a href="{:U('Dash/proman')}">推广员列表</a>&nbsp;>>&nbsp;{$info.ssa_name}</div>

<div class="dl-panel">
    <div class="row">
        <div class="col-md-4">
            <dl class="dl-horizontal marginbottom0">
                <dt>性别</dt>
                <dd>
                    <if condition="$info.ssa_sex eq 1 "> 男 </if>
                    <if condition="$info.ssa_sex eq 2 "> 女 </if>
                </dd>
                <dt>年龄</dt>
                <dd>{$info.ssa_age}</dd>
                <dt>电话</dt>
                <dd>{$info.ssa_phone}</dd>
                <dt>微信收款账户</dt>
                <dd>{$info.ssa_wechat_account}</dd>
                <dt>支付宝收款账户</dt>
                <dd>{$info.ssa_alipay_account}</dd>
                <dt>居住地</dt>
                <dd>{$info.ssa_addr}</dd>
                <dt>填表日期</dt>
                <dd>{$info.ssa_created_at}</dd>
                <dt>代理到期日期</dt>
                <dd>{$info.ssa_expired_at}</dd>
                <dt>账号类型</dt>
                <dd>{$info.ssa_type|getDisName=$info['ssa_type'],###}</dd>
            </dl>
        </div>
        <div class="col-md-2">
            <div class="bord-blue-1 cash cash-a">待确认</div>
            <div class="bord-blue-a cash cash-b">￥{$wait|default=0}</div>
        </div>
        <div class="col-md-2">
            <div class="bord-red-4 cash cash-a">已确认</div>
            <div class="bord-red-d cash cash-b">￥{$already|default=0}</div>
        </div>
        <div class="col-md-2">
            <div class="bord-yello-3 cash cash-a">提款中</div>
            <div class="bord-yello-c cash cash-b">￥{$cash|default=0}</div>
        </div>
        <div class="col-md-2">
            <div class="bord-green-2 cash cash-a">已结算</div>
            <div class="bord-green-b cash cash-b">￥{$paids|default=0}</div>
        </div>
    </div>
</div>


<div class="table-tit">销售编码</div>
<table class="table table-bgfont">
    <tr>
        <th>ID</th>
        <th>销售码</th>
        <th>推广类型</th>
        <th>开始日期</th>
        <th>日序号</th>
        <th>截止日期</th>
        <th>限制码</th>
        <th>当前状态</th>
    </tr>
    <volist name="code" id="v">
        <tr>
            <td>{$v.dis_id}</td>
            <td><a href="{:U('Dash/salecodeover','cod='.$v['dis_id'])}" class="text-danger" target='_blank'>{$v.dis_isbn}</a></td>
            <td>{$v.dis_preid|getPreName=$v['dis_preid'],###}</td>
            <td>20{$v.dis_timecode}</td>
            <td>{$v.dis_sn}</td>
            <td>20{$v.dis_endtimecode}</td>
            <td><if condition="$v.dis_limitcode eq 1">Y<else/>N</if></td>
            <td>
                <if condition="$v.dis_status eq 1">
                    <button type="button" class="btn btn-success btn-xs">生效中</button>
                    <else/>
                    <button type="button" class="btn btn-danger btn-xs">已失效</button>
                </if>
            </td>
        </tr>
    </volist>
</table>

<div class="table-tit">付款历史</div>
<table class="table table-bgfont">
    <tr>
        <th>编号</th>
        <th>金额</th>
        <th>收单行</th>
        <th>收款人</th>
        <th>账号</th>
        <th>申请时间</th>
        <th>支付时间</th>
        <th>状态</th>
    </tr>

    <volist name="paid.data" id="v">
        <tr>
            <td>{$v.set_sn}</td>
            <td>{$v.set_cash}</td>
            <td>{$info.ssa_banktrans}</td>
            <td>{$info.ssa_bankname}</td>
            <td>{$info.ssa_banknumber}</td>
            <td>{$v.set_time|date='Y-m-d H:i:s',###}</td>
            <td>{$v.set_paytime|date='Y-m-d H:i:s',###}</td>
            <td>
                <switch name="v.set_status">
                    <case value="100"><font class="text-primary">初审中</font></case>
                    <case value="102"><font class="text-danger">初审失败</font></case>
                    <case value="200"><font class="text-warning">复核中</font></case>
                    <case value="202"><font class="text-danger">复核失败</font></case>
                    <case value="300"><font class="text-warning">未付款</font></case>
                    <case value="301"><font class="text-info">银行退回</font></case>
                    <case value="302"><font class="text-info">网络错误</font></case>
                    <case value="400"><font class="text-success">已付款</font></case>
                </switch>
            </td>
        </tr>
    </volist>
    <tr>
        <td colspan="8">{$paid.page}</td>
    </tr>
</table>



<include file="Public:footer"/>